package drds.data_propagate.task.model;

public enum StorageScavengeMode {
    /**
     * 在存储满的时候触发
     */
    when_full,
    /**
     * 在每次有ack请求时触发
     */
    when_ack,
    /**
     * 定时触发，需要外部控制
     */
    schedule;

    public boolean isOnFull() {
        return this.equals(StorageScavengeMode.when_full);
    }

    public boolean isOnAck() {
        return this.equals(StorageScavengeMode.when_ack);
    }

    public boolean isOnSchedule() {
        return this.equals(StorageScavengeMode.schedule);
    }

}
